import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';

@Component({
  selector: 'equipment-check-item',
  templateUrl: './equipment-check-item.component.html',
  styleUrls: ['./equipment-check-item.component.css']
})
export class EquipmentCheckItemComponent implements OnInit {

  test_data: any;

  constructor(
    private _http: HttpClient
  ) { }

  ngOnInit() {
    this._http.get("http://127.0.0.1:9999/dev/equip/findAll")
              .subscribe(
                resp => {
                  console.log(resp);
                  this.test_data = resp['data'];
                }
              );
  }

}
